import request from '@/utils/request'
import qs from 'qs'

export function getData(data) {
  return request({
    url: 'http://localhost:2345/question/list',
      method: "get",
      params:data
  })
}

//新增题库
export function addquset(data) {
  return request({
    url: 'http://localhost:2345/question/addList',
      method: 'post',
      data: data
  })
}

//修改题库
export function xgData(data) {
  return request({
    url: 'http://localhost:2345/question/upList',
      method: 'post',
      data: data
  })
}

//删除题库
export function delData(id) {
  return request({
    url: 'http://localhost:2345/question/deleList',
      method: 'get',
      params: {
          id
      }
  })
}